﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace pyTivoMetadataManager
{
    public static class Extensions
    {
        public static void SelectSingleNodeValueInto(this XmlNode node, string xpath, ref string into)
        {
            XmlNode valueNode = node.SelectSingleNode(xpath);
            if (valueNode != null) into = valueNode.InnerText;
        }
    }
}
